/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package formula.node;

/**
 *
 * @author CJ
 */
public enum OperationNodeType{
    PLUS('+'), MINUS('-'), MULTI('*'), DIVIDE('/');

    private char stringValue;
    private OperationNodeType(char stringValue){
        this.stringValue = stringValue;
    }

    public static OperationNodeType getRandomOperation(){
        switch((int)(Math.random() * 4)){
            case 0:
                return PLUS;
            case 1:
                return MINUS;
            case 2:
                return MULTI;
            default:
                return DIVIDE;
        }
    }

    public String toString(){
        String result = "";
        result += this.stringValue;
        return result;
    }

}
